
pkgname=nfsidmap
pkgver=0.26
_pkgver=0-26
pkgrel=2
pkgdesc="Library to help mapping IDs, mainly for NFSv4"
arch=('x86_64')
url="http://www.citi.umich.edu/projects/nfsv4/linux/"
depends=('glibc' 'libldap')
license=('custom:nfsidmap')
source=("https://github.com/Distrotech/libnfsidmap/archive/libnfsidmap-$_pkgver.tar.gz")
md5sums=('cf1241a2a4a34029e0162810dff83e6c')

build() {
  cd $srcdir/libnfsidmap-libnfsidmap-$_pkgver
  
  ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd $srcdir/libnfsidmap-libnfsidmap-$_pkgver
  make DESTDIR=$pkgdir install

  install -Dm644 COPYING $pkgdir/usr/share/licenses/nfsidmap/LICENSE
}

